package com.noble.meether.chat.ui.agora.act.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONObject;

/**
 * 用户评价标签
 */
public class Label extends BaseData {
    private int id;
    private String label;
    private int starMax;    // 标签区分星级

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.id = jsonObject.optInt("Id");
        this.label = jsonObject.optString("Label");
        this.starMax = jsonObject.optInt("StarMax");
    }

    public int getId() {
        return id;
    }

    public String getLabel() {
        return label;
    }

    public int getStarMax() {
        return starMax;
    }
}
